package com.leo.tool.rpc.rmi.client;

import java.rmi.Naming;

import com.leo.tool.rpc.rmi.User;

import lombok.SneakyThrows;

public class Client {

    @SneakyThrows
    public static void main(String[] args) {
        User user = (User)Naming.lookup("rmi://localhost:8888/user");
        System.out.println(user.say());
    }
}
